package com.gw.booking.dto.wechat;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;
import java.util.List;

public class WChangeOrderDto {

    @ApiModelProperty(value="预约id", required = true)
    private Integer orderId;
    @ApiModelProperty(value="优惠id")
    private Integer discountId;
    @ApiModelProperty(value="预约人数")
    private Integer orderNum;
    @ApiModelProperty(value="预约日期" ,example = "2018-01-01")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date orderDate;
    @ApiModelProperty(value="预约时间",example = "2018-01-01 10:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;
    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank
    private String name;
    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank
    private String phone;
    @ApiModelProperty(value = "备注", required = true)
    private String note;
    @ApiModelProperty(value = "预约时间集合（预约时间未确认前可修改）", required = true)
    private List<OrderTimeDto> orderTimeDtoList;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getDiscountId() {
        return discountId;
    }

    public void setDiscountId(Integer discountId) {
        this.discountId = discountId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public List<OrderTimeDto> getOrderTimeDtoList() {
        return orderTimeDtoList;
    }

    public void setOrderTimeDtoList(List<OrderTimeDto> orderTimeDtoList) {
        this.orderTimeDtoList = orderTimeDtoList;
    }
}
